package com.gzx.tjzy.feign;

/**
 * @author zjt
 * @description
 * @since 2025/2/12 10:03
 */

import com.gzx.tjzy.feign.req.repayment.RepaymentReqDto;
import com.gzx.tjzy.feign.resp.repayment.RepaymentRespDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import vip.xiaonuo.common.consts.FeignConstant;

import java.util.List;

/**
 * 用户Feign
 *
 * @author dongxiayu
 * @date 2022/11/22 16:12
 */
@FeignClient(name = FeignConstant.BIZ_APP, contextId = "TjzyRepaymentFeign")
public interface GzxRepaymentFeign {

    /**
     * 获取还款对账单数据
     *
     * @param repaymentReqDto
     * @return
     */
    @RequestMapping("/feign/tjzy/repayment/getRepaymentList")
    List<RepaymentRespDto> getRepaymentList(@RequestBody RepaymentReqDto repaymentReqDto);

    /**
     * 获取上月1号截止到上月今天的还款数据
     *
     * @return
     */
    @RequestMapping("/feign/tjzy/repayment/getLastMonthRepaymentList")
    List<RepaymentRespDto> getLastMonthRepaymentList();
}
